package edu.nf.waimai.service.user;

import edu.nf.waimai.model.user.ShoppingCart;
import edu.nf.waimai.model.user.UserShopPingCart;

import java.util.List;

public interface ShoppingService {
    /**
     * 添加购物车
     * @param shopping
     * @return
     */
    int addShopPing(ShoppingCart shopping);
    /**
     * 根据用户id，商家id，状态码查询购物车
     * @param userId
     * @param shopId
     * @return
     */
    List<UserShopPingCart> listShopping(int userId, int shopId);
    /**
     * 根据用户id，商家id 修改订单状态码
     * @param userId
     * @param shopId
     * @return
     */
    int updateShopPing(int userId, int shopId);
}
